import { h } from '../../lib/guide-leo-vue.esm.js'
export const Foo = {
    setup(props,{emit}) {
        const emitAdd = () => {
            console.log('emit add');
            emit("add",1,2)
            emit("add-foo",3,4)
        }
        return {
            emitAdd
        }
    },
    render() {
        const btn = h('button',{
            onClick:this.emitAdd
        },'emitAdd')
        const foo = h('div',{},'leo')
        return h('div',{},[foo,btn])
    },
}